<template>
	<view class="confirm-order">
		<view class="order-container">
			<view class="toast-msg">
				<image class="msg-img" src="../../static/img/confirm-order.png" mode=""></image>
				<view class="msg-text">支付成功</view>
			</view>
			<view class="order-btn">
				<view class="call-back" @tap="gotoPage(0)">返回商品</view>
				<view class="look-order" @tap="gotoPage(1)">查看订单</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			gotoPage(i) {
				if (i == 0) {
					this.$Router.replaceAll('/pages/goods/goods_detail?from=menu')
				}
			}
		}
	}
</script>

<style lang="scss">
	page {
		// background-color: #ccc;
	}

	.confirm-order {
		padding-top: 150rpx;
		.order-container {
			.toast-msg {
				display: flex;
				flex-direction: column;
				align-items: center;

				.msg-img {
					width: 163rpx;
					height: 162rpx;
				}

				.msg-text {
					margin-top: 33rpx;
					font-size: 36rpx;
					letter-spacing: 4rpx;
					color: #363636;
				}
			}

			.order-btn {
				display: flex;
				align-items: center;
				justify-content: space-around;
				margin-top: 187rpx;

				.call-back {
					display: flex;
					align-items: center;
					justify-content: center;
					width: 286rpx;
					height: 75rpx;
					border-radius: 38rpx;
					border: solid 2rpx #a0a0a0;
					font-size: 35rpx;
					letter-spacing: 4rpx;
					color: #545454;
				}

				.look-order {
					display: flex;
					align-items: center;
					justify-content: center;
					width: 286rpx;
					height: 75rpx;
					background-color: #c60122;
					border-radius: 38rpx;
					font-size: 35rpx;
					letter-spacing: 4rpx;
					color: #ffffff;
				}
			}
		}
	}
</style>
